using System;

namespace PropertyExpression.ControllableQuery.Test.Queries.StringBuilding
{
    public class PublicationTypeDeleteQuery : INonQuery
    {
        private readonly IParam<Guid> publicationTypeId;

        public PublicationTypeDeleteQuery(IParam<Guid> publicationTypeId)
        {
            this.publicationTypeId = publicationTypeId;
        }

        public string TransformText()
        {
            publicationTypeId.ToSql("@PublicationTypeId");
            return @"DELETE FROM PublicationType WHERE PublicationTypeId = @PublicationTypeId";
        }
    }
}